\hypertarget{class_g_object}{
\section{GObject Class Reference}
\label{class_g_object}\index{GObject@{GObject}}
}


Classe mère abstraite servant de base aux différents éléments affichable de la scene OpenGL.  




{\ttfamily \#include $<$GObject.h$>$}

Inheritance diagram for GObject:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{class_g_object}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_g_object_afedde284b6acb6d665d0fce37754f1f0}{GObject} (int typeObject)
\begin{DoxyCompactList}\small\item\em Initialise le type de l'objet dérivé. \item\end{DoxyCompactList}\item 
\hyperlink{class_g_object_ab1a18fd6e56abc0628922eba16bce786}{GObject} (int, \hyperlink{class_vectorf}{Vectorf} \hyperlink{class_g_object_ad723a45f4206005336d977c663935ca2}{translation})
\begin{DoxyCompactList}\small\item\em Initialise le type de l'objet dérivé ainsi que sa position dans la scène openGL (translation). \item\end{DoxyCompactList}\item 
\hyperlink{class_g_object_a68497efd5ee64a8a6f4f17a411ba6bc4}{GObject} (int, \hyperlink{class_vectorf}{Vectorf} \hyperlink{class_g_object_ad723a45f4206005336d977c663935ca2}{translation}, \hyperlink{class_vectorf}{Vectorf} \hyperlink{class_g_object_a7192b2d0a9093341582a97c66cf4e462}{rotation})
\item 
virtual \hyperlink{class_g_object_a8315726c820a2ffbfbfe9ca99c479a53}{$\sim$GObject} ()
\item 
virtual void \hyperlink{class_g_object_ab503ad9dad3645df29eb8ddd10d88195}{Display} ()=0
\begin{DoxyCompactList}\small\item\em Méthode virtuelle pure utilisé pour afficher les trucs. \item\end{DoxyCompactList}\item 
int \hyperlink{class_g_object_a27550f80c93518a34d7395e82f5f110f}{SetVertex} (int indiceVertex, \hyperlink{class_vectorf}{Vectorf} coordinates)
\begin{DoxyCompactList}\small\item\em Méthode permettant de modifier le contenu du buffer. \item\end{DoxyCompactList}\item 
\hyperlink{class_vectorf}{Vectorf} \hyperlink{class_g_object_ad0edde2142a37cbb9df69e67c747d519}{GetVertex} (int indiceVertex)
\begin{DoxyCompactList}\small\item\em Méthode permettant récupérer les coordonnées d'un sommet. \item\end{DoxyCompactList}\item 
int \hyperlink{class_g_object_a78ffef11bca8918946ac7e46db2104e8}{SetColor} (int indiceColor, \hyperlink{class_vectorf}{Vectorf})
\begin{DoxyCompactList}\small\item\em Méthode permettant de modifier la couleur d'un sommet. \item\end{DoxyCompactList}\item 
\hyperlink{class_vectorf}{Vectorf} \hyperlink{class_g_object_a8c8abb666a10ca941a0e2ba6cd514f2c}{GetColor} (int indiceColor)
\begin{DoxyCompactList}\small\item\em Méthode permettant récupérer les composantes RGB. \item\end{DoxyCompactList}\item 
int \hyperlink{class_g_object_a7d5fc2a2c10ac91b3edd2664751047eb}{SetTexture} (int indiceVertex, \hyperlink{class_vectorf}{Vectorf})
\item 
\hyperlink{class_vectorf}{Vectorf} \hyperlink{class_g_object_aaba1d2a0bdacd323433e280c590ddc28}{GetTexture} ()
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
GLuint \hyperlink{class_g_object_aebdf16804b2229466a5736609a348eee}{vertexBuffer}
\item 
GLuint \hyperlink{class_g_object_a9ac3ceaa49bb851fc5eecfbae95255c1}{colorBuffer}
\item 
GLuint \hyperlink{class_g_object_affecaaecbfa9ff9896433d6b7e2b8f77}{indexBuffer}
\item 
GLuint \hyperlink{class_g_object_adf3c482e69df81baaa38a77f6682d4f5}{normalBuffer}
\item 
GLuint \hyperlink{class_g_object_a7b47180db353356e71fbb5fc97b5c7c2}{textureBuffer}
\item 
int \hyperlink{class_g_object_a98b7dcc0b1e11f5bd4d25bb79b364957}{dimensionVertex}
\item 
int \hyperlink{class_g_object_aea16b8e3a83d216f4fba70fe1795a2e0}{dimensionColors}
\item 
int \hyperlink{class_g_object_a7a6b0bc2d5f46c1565cd68fdad8fc6ec}{dimensionTexture}
\item 
\hyperlink{class_vectorf}{Vectorf} $\ast$ \hyperlink{class_g_object_ad723a45f4206005336d977c663935ca2}{translation}
\item 
\hyperlink{class_vectorf}{Vectorf} $\ast$ \hyperlink{class_g_object_a7192b2d0a9093341582a97c66cf4e462}{rotation}
\item 
int \hyperlink{class_g_object_aa12d9e63a6cd6e30fad34efa4e81985c}{type}
\item 
\hyperlink{class_vectorf}{Vectorf} \hyperlink{class_g_object_a574fa6a288d099968ab076437c9d9cb3}{isoBarycentre}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Classe mère abstraite servant de base aux différents éléments affichable de la scene OpenGL. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_g_object_afedde284b6acb6d665d0fce37754f1f0}{
\index{GObject@{GObject}!GObject@{GObject}}
\index{GObject@{GObject}!GObject@{GObject}}
\subsubsection[{GObject}]{\setlength{\rightskip}{0pt plus 5cm}GObject::GObject (
\begin{DoxyParamCaption}
\item[{int}]{ typeObject}
\end{DoxyParamCaption}
)}}
\label{class_g_object_afedde284b6acb6d665d0fce37754f1f0}


Initialise le type de l'objet dérivé. 


\begin{DoxyParams}{Parameters}
\item[{\em int}]typeObject : type de l'objet : rectangle, rectangle texturé, sprite etc \end{DoxyParams}
\hypertarget{class_g_object_ab1a18fd6e56abc0628922eba16bce786}{
\index{GObject@{GObject}!GObject@{GObject}}
\index{GObject@{GObject}!GObject@{GObject}}
\subsubsection[{GObject}]{\setlength{\rightskip}{0pt plus 5cm}GObject::GObject (
\begin{DoxyParamCaption}
\item[{int}]{ typeObject, }
\item[{{\bf Vectorf}}]{ translation}
\end{DoxyParamCaption}
)}}
\label{class_g_object_ab1a18fd6e56abc0628922eba16bce786}


Initialise le type de l'objet dérivé ainsi que sa position dans la scène openGL (translation). 


\begin{DoxyParams}{Parameters}
\item[{\em int}]typeObject : type de l'objet : rectangle, rectangle texturé, sprite \item[{\em \hyperlink{class_vectorf}{Vectorf}}]translation : coordonées pour la translation \end{DoxyParams}
\hypertarget{class_g_object_a68497efd5ee64a8a6f4f17a411ba6bc4}{
\index{GObject@{GObject}!GObject@{GObject}}
\index{GObject@{GObject}!GObject@{GObject}}
\subsubsection[{GObject}]{\setlength{\rightskip}{0pt plus 5cm}GObject::GObject (
\begin{DoxyParamCaption}
\item[{int}]{ aType, }
\item[{{\bf Vectorf}}]{ translation, }
\item[{{\bf Vectorf}}]{ rotation}
\end{DoxyParamCaption}
)}}
\label{class_g_object_a68497efd5ee64a8a6f4f17a411ba6bc4}
\hypertarget{class_g_object_a8315726c820a2ffbfbfe9ca99c479a53}{
\index{GObject@{GObject}!$\sim$GObject@{$\sim$GObject}}
\index{$\sim$GObject@{$\sim$GObject}!GObject@{GObject}}
\subsubsection[{$\sim$GObject}]{\setlength{\rightskip}{0pt plus 5cm}GObject::$\sim$GObject (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_g_object_a8315726c820a2ffbfbfe9ca99c479a53}


\subsection{Member Function Documentation}
\hypertarget{class_g_object_ab503ad9dad3645df29eb8ddd10d88195}{
\index{GObject@{GObject}!Display@{Display}}
\index{Display@{Display}!GObject@{GObject}}
\subsubsection[{Display}]{\setlength{\rightskip}{0pt plus 5cm}void GObject::Display (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{class_g_object_ab503ad9dad3645df29eb8ddd10d88195}


Méthode virtuelle pure utilisé pour afficher les trucs. 



Implemented in \hyperlink{class_g_rect_a951017e20b29b9da11e16d269a4f54d4}{GRect}, and \hyperlink{class_g_rect_t_ae7eeea75b3d521b019824f365287f98c}{GRectT}.

\hypertarget{class_g_object_a8c8abb666a10ca941a0e2ba6cd514f2c}{
\index{GObject@{GObject}!GetColor@{GetColor}}
\index{GetColor@{GetColor}!GObject@{GObject}}
\subsubsection[{GetColor}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Vectorf} GObject::GetColor (
\begin{DoxyParamCaption}
\item[{int}]{ indiceColor}
\end{DoxyParamCaption}
)}}
\label{class_g_object_a8c8abb666a10ca941a0e2ba6cd514f2c}


Méthode permettant récupérer les composantes RGB. 


\begin{DoxyParams}{Parameters}
\item[{\em int}]indiceVertex : Indice du sommet à récupérer \end{DoxyParams}
\hypertarget{class_g_object_aaba1d2a0bdacd323433e280c590ddc28}{
\index{GObject@{GObject}!GetTexture@{GetTexture}}
\index{GetTexture@{GetTexture}!GObject@{GObject}}
\subsubsection[{GetTexture}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Vectorf} GObject::GetTexture (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_g_object_aaba1d2a0bdacd323433e280c590ddc28}
\hypertarget{class_g_object_ad0edde2142a37cbb9df69e67c747d519}{
\index{GObject@{GObject}!GetVertex@{GetVertex}}
\index{GetVertex@{GetVertex}!GObject@{GObject}}
\subsubsection[{GetVertex}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Vectorf} GObject::GetVertex (
\begin{DoxyParamCaption}
\item[{int}]{ indiceVertex}
\end{DoxyParamCaption}
)}}
\label{class_g_object_ad0edde2142a37cbb9df69e67c747d519}


Méthode permettant récupérer les coordonnées d'un sommet. 


\begin{DoxyParams}{Parameters}
\item[{\em int}]indiceVertex : Indice du sommet à récupérer \end{DoxyParams}
\hypertarget{class_g_object_a78ffef11bca8918946ac7e46db2104e8}{
\index{GObject@{GObject}!SetColor@{SetColor}}
\index{SetColor@{SetColor}!GObject@{GObject}}
\subsubsection[{SetColor}]{\setlength{\rightskip}{0pt plus 5cm}int GObject::SetColor (
\begin{DoxyParamCaption}
\item[{int}]{ indiceColor, }
\item[{{\bf Vectorf}}]{ color}
\end{DoxyParamCaption}
)}}
\label{class_g_object_a78ffef11bca8918946ac7e46db2104e8}


Méthode permettant de modifier la couleur d'un sommet. 

\hypertarget{class_g_object_a7d5fc2a2c10ac91b3edd2664751047eb}{
\index{GObject@{GObject}!SetTexture@{SetTexture}}
\index{SetTexture@{SetTexture}!GObject@{GObject}}
\subsubsection[{SetTexture}]{\setlength{\rightskip}{0pt plus 5cm}int GObject::SetTexture (
\begin{DoxyParamCaption}
\item[{int}]{ indiceVertex, }
\item[{{\bf Vectorf}}]{}
\end{DoxyParamCaption}
)}}
\label{class_g_object_a7d5fc2a2c10ac91b3edd2664751047eb}
\hypertarget{class_g_object_a27550f80c93518a34d7395e82f5f110f}{
\index{GObject@{GObject}!SetVertex@{SetVertex}}
\index{SetVertex@{SetVertex}!GObject@{GObject}}
\subsubsection[{SetVertex}]{\setlength{\rightskip}{0pt plus 5cm}int GObject::SetVertex (
\begin{DoxyParamCaption}
\item[{int}]{ indiceVertex, }
\item[{{\bf Vectorf}}]{ coordinates}
\end{DoxyParamCaption}
)}}
\label{class_g_object_a27550f80c93518a34d7395e82f5f110f}


Méthode permettant de modifier le contenu du buffer. 


\begin{DoxyParams}{Parameters}
\item[{\em int}]indiceVertex : Indice du sommet à modifier \item[{\em \hyperlink{class_vectorf}{Vectorf}}]coordinates : nouvelle coordoonées du sommet \end{DoxyParams}


\subsection{Member Data Documentation}
\hypertarget{class_g_object_a9ac3ceaa49bb851fc5eecfbae95255c1}{
\index{GObject@{GObject}!colorBuffer@{colorBuffer}}
\index{colorBuffer@{colorBuffer}!GObject@{GObject}}
\subsubsection[{colorBuffer}]{\setlength{\rightskip}{0pt plus 5cm}GLuint {\bf GObject::colorBuffer}}}
\label{class_g_object_a9ac3ceaa49bb851fc5eecfbae95255c1}
Indice du buffer utilisé pour stocker les informations de couleurs des sommets \hypertarget{class_g_object_aea16b8e3a83d216f4fba70fe1795a2e0}{
\index{GObject@{GObject}!dimensionColors@{dimensionColors}}
\index{dimensionColors@{dimensionColors}!GObject@{GObject}}
\subsubsection[{dimensionColors}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf GObject::dimensionColors}}}
\label{class_g_object_aea16b8e3a83d216f4fba70fe1795a2e0}
Nombre de canaux utilisés pour représenter la couleur (entre 1 et 4) \hypertarget{class_g_object_a7a6b0bc2d5f46c1565cd68fdad8fc6ec}{
\index{GObject@{GObject}!dimensionTexture@{dimensionTexture}}
\index{dimensionTexture@{dimensionTexture}!GObject@{GObject}}
\subsubsection[{dimensionTexture}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf GObject::dimensionTexture}}}
\label{class_g_object_a7a6b0bc2d5f46c1565cd68fdad8fc6ec}
Nombre dimension utilisés pour représenter la texture (entre 1 et 3) \hypertarget{class_g_object_a98b7dcc0b1e11f5bd4d25bb79b364957}{
\index{GObject@{GObject}!dimensionVertex@{dimensionVertex}}
\index{dimensionVertex@{dimensionVertex}!GObject@{GObject}}
\subsubsection[{dimensionVertex}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf GObject::dimensionVertex}}}
\label{class_g_object_a98b7dcc0b1e11f5bd4d25bb79b364957}
Nombre de coordoonnées utilisés pour représenter un sommet (compris en 1 et 4) \hypertarget{class_g_object_affecaaecbfa9ff9896433d6b7e2b8f77}{
\index{GObject@{GObject}!indexBuffer@{indexBuffer}}
\index{indexBuffer@{indexBuffer}!GObject@{GObject}}
\subsubsection[{indexBuffer}]{\setlength{\rightskip}{0pt plus 5cm}GLuint {\bf GObject::indexBuffer}}}
\label{class_g_object_affecaaecbfa9ff9896433d6b7e2b8f77}
Indice du buffer contenant les informations sur l'indice du sommet à afficher \hypertarget{class_g_object_a574fa6a288d099968ab076437c9d9cb3}{
\index{GObject@{GObject}!isoBarycentre@{isoBarycentre}}
\index{isoBarycentre@{isoBarycentre}!GObject@{GObject}}
\subsubsection[{isoBarycentre}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Vectorf} {\bf GObject::isoBarycentre}}}
\label{class_g_object_a574fa6a288d099968ab076437c9d9cb3}
Coordoonnées du sommet représentant l'isoBarycentre de la forme \hypertarget{class_g_object_adf3c482e69df81baaa38a77f6682d4f5}{
\index{GObject@{GObject}!normalBuffer@{normalBuffer}}
\index{normalBuffer@{normalBuffer}!GObject@{GObject}}
\subsubsection[{normalBuffer}]{\setlength{\rightskip}{0pt plus 5cm}GLuint {\bf GObject::normalBuffer}}}
\label{class_g_object_adf3c482e69df81baaa38a77f6682d4f5}
Indice du buffer utilisé pour stocker les informations concernant les normales des sommets \hypertarget{class_g_object_a7192b2d0a9093341582a97c66cf4e462}{
\index{GObject@{GObject}!rotation@{rotation}}
\index{rotation@{rotation}!GObject@{GObject}}
\subsubsection[{rotation}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Vectorf}$\ast$ {\bf GObject::rotation}}}
\label{class_g_object_a7192b2d0a9093341582a97c66cf4e462}
\hypertarget{class_g_object_a7b47180db353356e71fbb5fc97b5c7c2}{
\index{GObject@{GObject}!textureBuffer@{textureBuffer}}
\index{textureBuffer@{textureBuffer}!GObject@{GObject}}
\subsubsection[{textureBuffer}]{\setlength{\rightskip}{0pt plus 5cm}GLuint {\bf GObject::textureBuffer}}}
\label{class_g_object_a7b47180db353356e71fbb5fc97b5c7c2}
Indice du buffer utilisé pour stocker les informations concernant les indices de texture des sommets \hypertarget{class_g_object_ad723a45f4206005336d977c663935ca2}{
\index{GObject@{GObject}!translation@{translation}}
\index{translation@{translation}!GObject@{GObject}}
\subsubsection[{translation}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Vectorf}$\ast$ {\bf GObject::translation}}}
\label{class_g_object_ad723a45f4206005336d977c663935ca2}
\hypertarget{class_g_object_aa12d9e63a6cd6e30fad34efa4e81985c}{
\index{GObject@{GObject}!type@{type}}
\index{type@{type}!GObject@{GObject}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf GObject::type}}}
\label{class_g_object_aa12d9e63a6cd6e30fad34efa4e81985c}
Identifie le sous-\/type de l'objet courant (rectangle, courbe Bézier etc ...) \hypertarget{class_g_object_aebdf16804b2229466a5736609a348eee}{
\index{GObject@{GObject}!vertexBuffer@{vertexBuffer}}
\index{vertexBuffer@{vertexBuffer}!GObject@{GObject}}
\subsubsection[{vertexBuffer}]{\setlength{\rightskip}{0pt plus 5cm}GLuint {\bf GObject::vertexBuffer}}}
\label{class_g_object_aebdf16804b2229466a5736609a348eee}
Indice du buffer contenant les informations sur les sommets 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
sources/graphic/\hyperlink{_g_object_8h}{GObject.h}\item 
sources/graphic/\hyperlink{_g_object_8cpp}{GObject.cpp}\end{DoxyCompactItemize}
